<template>
    <view>
        <search to="/pages/langwen/search"></search>
        <filters ref="filters" :floorId="floorId"></filters>
    </view>
</template>

<script>
import search from '@/components/langwen/search.vue';
import filters from '@/components/langwen/filter.vue';
export default {
	name: 'floor',
    onLoad(option) {
        uni.setNavigationBarTitle({
            title: JSON.parse(option.param).title
        });
        this.floorId = JSON.parse(option.param).id;
    },
	// 下拉刷新回调函数
	onPullDownRefresh() {
		this.$refs.filters.getListData('headerRefreshing');
		uni.stopPullDownRefresh();
	},
	// 上拉加载
	onReachBottom() {
		this.$refs.filters.getListData('load');
	},
    data() {
        return {
            // 楼层 id
            floorId: ''
        }
    },
    components: {
        search,
        filters
    }
}
</script>